package djboom.materials.events {
	import flash.events.Event;

	/**
	 * .
	 * <br>
	 * 
	 * @author DJ BooM 
	 * @since 06.04.2010
	 * 
	 */

	public class PageEvent extends Event {

		// ----------------------------------------------------------------------------
		// Свойства класса.
		// ----------------------------------------------------------------------------

		public static const CHANGE:String = "changePage";
		private var _pageName:String;

		// ----------------------------------------------------------------------------
		// Конструктор.
		// ----------------------------------------------------------------------------

		public function PageEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
		}

		// ----------------------------------------------------------------------------
		// Публичные методы.
		// ----------------------------------------------------------------------------

		override public function clone():Event {
			var e:PageEvent = new PageEvent(this.type, this.bubbles, this.cancelable);
			e.pageName = this.pageName;
			return e;
		}

		public function get pageName():String {
			return _pageName;
		}

		public function set pageName(pageName:String):void {
			_pageName = pageName;
		}
	}
}